// 用户下拉框
Ext.define('UserModel', {
    extend: 'Ext.data.Model',
    fields: [
        "Id"
        , "Name"   //名称
		, "DepartID"   //所在部门ID
		, "Email"   //邮箱
		, "DisplayName"   //显示名称
		, "Slat"   //密码
		, "PasswordHash"   //密码2
		, "CreateDate"   //创建时间
		, "ModifiedDate"   //修改时间
        , "Flag"   //状态				
    ],
    idProperty: "Id"
});

Ext.define("SHApp.CompanyManage.CompanyInfo.UserComboBox", {
    extend: "BLBTSystem.CmbData",
    alias: "widget.userComboBox",
    dataUrl: "api/user?format=json&isLock=0",
    model: "UserModel",
    valueField: "Id",
    displayField: "Name",
    sorters: [{ property: "CreateDate", direction: "desc"}],
    LoadBySubId: function () {
        this.dataUrl = "api/user?format=json&isLock=0";
        this.reLoadData();
    }
});